﻿@using System;
@using ERP.Workflow.Designer.Domain.Shared.Localization
@using Microsoft.Extensions.Localization

@inject IStringLocalizer<WorkflowDesignerResource> L
@inject NavigationManager NavigationManager

<NavLink @onclick="click">@(Data.As<DefinitionDto>().Name)</NavLink>
@code {
    [Parameter]
    public object Data { get; set; }

    public void click()
    {
        NavigationManager.NavigateTo("/workflow/designer/" +   Data.As<DefinitionDto>().Id.ToString());
    }
}
